package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.aop.AutoFill;
import com.sky.entity.Employee;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmployeeMapper {

    Employee getByUsername(String username);

    @AutoFill(OperationType.INSERT)
    Integer insert(Employee emp);

    List<Employee> selectAll(String name);

    @AutoFill(OperationType.UPDATE)
    Integer update(Employee emp);

    Employee selectById(Long id);
}
